import request from '@/utils/request'
import { subUrl } from '@/api/dev'
const tempUrl = `${subUrl}/program`

//项目
export function getProjectList(data) {
  return request({
    url: `${tempUrl}/getProjectList`,
    method: 'post',
    data,
  })
}
//获取项目/费用号
export function getProjectGroup(data) {
  return request({
    url: `${tempUrl}/getProjectGroup`,
    method: 'post',
    data,
  })
}
export function insertProject(data) {
  return request({
    url: `${tempUrl}/insertProject`,
    method: 'post',
    data,
  })
}

export function deleteProject(data) {
  return request({
    url: `${tempUrl}/deleteProject`,
    method: 'post',
    data,
  })
}

export function updateProject(data) {
  return request({
    url: `${tempUrl}/updateProject`,
    method: 'post',
    data,
  })
}
export function getProjectById(data) {
  return request({
    url: `${tempUrl}/getProjectById`,
    method: 'post',
    data,
  })
}

//项目产量分类统计
export function getProjectProduct(data) {
  return request({
    url: `${tempUrl}/getProjectProduct`,
    method: 'post',
    data,
  })
}

//项目纵览数据
export function getProjectTotalList(data) {
  return request({
    url: `${tempUrl}/getProjectTotalList`,
    method: 'post',
    data,
  })
}
